﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Consejo.Monitoring.BusinessObjects
{
    [Serializable]
    public class SystemStatus
    {
        private string _systemId = null;
        public string SystemId
        {
            get { return _systemId; }
            set { _systemId = value; }
        }

        private List<ServerStatus> _servers;
        public List<ServerStatus> Servers
        {
            get { return _servers; }
            set { _servers = value; }
        }

        public SystemStatus(List<ServerStatus> serverStatus)
        {
            _servers = serverStatus;
        }

        public SystemStatus()
        {
        }

        public void Add(ServerStatus server)
        {
            _servers.Add(server);
        }

        public bool Remove(ServerStatus server)
        {
            return _servers.Remove(server);
        }
    }
}
